if not security.getSU() then
 exception.throw("RestrictedOpsException")
 return
end

if not config.load("/etc/tpm/packageInstalled.dat") then
 gui.printAppInfo("tpm", "packageInstalled.dat is missing or corrupt")
 if gui.request("Repair TPM data files") then
  config.save({}, "/etc/tpm/packageInstalled.dat")
  gui.printAppInfo("tpm", "package registry reconstructed")
 end
else
 gui.printAppInfo("tpm", "packageInstalled.dat is correctly readable")
end